<template>
	<div>
		<div style="width: 100%;height: 20px;background-color: #ebedf0;"></div>
		<div style="padding: 20px;">
			<!--教师得分页面(改完字段)-->
			<!--<div style="margin:5px 0px 0px 0px;background-color: #f5f5f5;padding: 20px;">
				<Row >
			        <Col span="24" style="text-align: left;">
						<span style="font-size: 18px;color: #1a1a1a;font-weight: 540;">评价名称：{{excelname}}</span>
					</Col>
				</Row>
				<Row style="margin:15px 0px 0px 0px;color: #666666;">
			        <Col span="6" style="text-align: left;">
						<span style="font-size: 16px;">年级：{{gradeName}}</span>
					</Col>
					<Col span="6" style="text-align: left;">
						<span style="font-size: 16px;">基数：{{baseExamName}}</span>
					</Col>
					<Col span="6" style="text-align: left;">
						<span style="font-size: 16px;">本次：{{thisExamName}}</span>
					</Col>
					<Col span="6" style="text-align: left;">
						<span style="font-size: 16px;">时间：{{createTime}}</span>
					</Col>
				</Row>
			</div>-->
			
			
			
			<Row >
		        <Col span="24" style="text-align: left;margin-top:15px;">
		        	<span>科目筛选：</span>
		        	<RadioGroup  v-model="subjectselect" type="button" @on-change="changeselect">
		        		<Radio v-for="item in subjectlist" :key="item.value" :label="item.value">{{item.label}}</Radio>
				       
				    </RadioGroup>
		        </Col>
		        <Spin size="large" fix v-if="subjectlistshow"></Spin>
		    </Row>
	    	<Row style="text-align: left;margin-top: 41px;margin-left: -20px;">
				<span style="border-left: 5px solid #517EDB;font-size: 16px;"></span>
				<span style="font-size: 16px;font-weight: 800;margin-left: 41px;">得分结果柱状图</span>
			</Row >
			<div>
				<div id="myChart" ref="test" :style="{width: '100%', height: '400px'}"></div>
				<Spin size="large" fix v-if="chartshow"></Spin>
			</div>
			<Row >
		        <Col span="24" style="text-align: right;">
		        	<!--<Button style="background-color: #4496fc;" size="small" :loading="loading" @click="exportexl">
		        		<span v-if="!loading"><img style="width: 20px;margin-top: 2px;" src="../../../../../../static/img/export.png" alt="" /></span>
				        <span v-else>加载中</span>
		        	</Button>-->
		        </Col>
		    </Row>
		    
		    <Row style="text-align: left;margin-top: 41px;margin-left: -20px;">
				<span style="border-left: 5px solid #517EDB;font-size: 16px;"></span>
				<span style="font-size: 16px;font-weight: 800;margin-left: 41px;">得分明细表</span>
			</Row >
			<div style="position: relative;min-height: 350px;">
				<div v-if="tableData2.length == 0?false:true" style="position: absolute;z-index: 999;width: 100%;height: 100%;background-color: rgba(255,255,255,1);">
					
					<div style="border: 1px solid #dddddd;padding: 10px;border-radius: 10px;">
						<div style="font-size: 16px;margin-top: 5px;">教师教学明细</div>
			      		<i style="font-size: 15px;position: absolute;right: 20px;top: 16px;" @click="tableData2=[]" class="iconfont alicon-close_light"></i>
				    	<!--查看更多的表格-->
					    <v-table :is-loading="loadingShow" 
								:vertical-resize-offset='5'
				            	:min-height='500' 
				            	is-horizontal-resize 
				            	is-vertical-resize 
				            	style="width:100%;margin-top:10px;" 
				            	:title-rows="titleRows2" 
				            	:columns="columns2" 
				            	:table-data="tableData2" 
				            	:cell-merge="cellMerge"></v-table>
					</div>
					
					
		        </div>    	
				<v-table :is-loading="loadingShow" 
						:vertical-resize-offset='5'
		            	:min-height='500' 
		            	is-horizontal-resize 
		            	is-vertical-resize 
		            	style="width:100%;margin-top:10px;" 
		            	:row-click='getDetailInfo'
		            	row-click-color="#3dd9cc29"  
		            	:column-cell-class-name="columnCellClass"
		            	:title-rows="titleRows" 
		            	:columns="columns" 
		            	:table-data="tableData" 
		            	:cell-merge="cellMerge"></v-table>
				
				
			
					
					
			</div>
		</div>
	</div>
</template>

<script>
//	import XLSX from 'xlsx';
//	import { downloadExl } from '@/components/js/Excel.js'
	import api from "@/components/js/Apidomain.js"
	import { getsessionstorage } from '@/components/js/Localstorage'
	export default{
		data(){
			return{
//				excelname:"",			//查询的名字
//				gradeName:"",			//查询的年级
//				baseExamName:"",		//查询的基数考试名字
//				thisExamName:"",		//查询的本次考试名字
//				createTime:"",			//查询的评价时间
				
				subjectlistshow:false,			//科目选择列表的加载中显示隐藏
				loadingShow:false,				//表格获取的加载中显示隐藏
				chartshow:false,				//chart的显示加载中
				
				loading: false,				//下载模板按钮上的加载中显示隐藏
				
				subjectselect:"",				//选择的科目
				subjectlist: [],
                
				titleRows: [
                             [
                              	{fields: ['teacherName'], title: '教师', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
//                            	{fields: ['subjectName'], title: '学科', titleAlign: 'center',rowspan: 2},
                              	{fields: ['averageResults','passRateResults','excellentRateResults'], title: '三率得分(30)', titleAlign: 'center',rowspan: 1,colspan: 3,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['backResults','forewardResults'], title: '横向得分(66)', titleAlign: 'center',rowspan: 1,colspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['verticalResults'], title: '纵向得分(20)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['originalSumResults'], title: '三项总分(116)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                            	{fields: ['changeSumResults'], title: '三项总分(80)116分转80分制', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                            	{fields: ['classesResults'], title: '班级得分(20)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['sumResults'], title: '总分(100)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['teacherResults'], title: '总分(8)100分制转8分制', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['subjectResults'], title: '学科平均分', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['isQualified'], title: '达标', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['getMore'], title: '更多', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              ],
                            [
                            	{fields: ['averageResults'], title: '平均分(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['passRateResults'], title: '及格率(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['excellentRateResults'], title: '优秀率(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['backResults'], title: '巩固率(43)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['forewardResults'], title: '提升率(23)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'}, 	
                            ],

                             
                ],
                columns: [
                    {field: 'teacherName', width: 70, titleAlign: 'center', columnAlign: 'center',isResize:true},

                    {field: 'averageResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'passRateResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'excellentRateResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'backResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'forewardResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'verticalResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'originalSumResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'changeSumResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'classesResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'sumResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'teacherResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'subjectResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'isQualified', width: 65, titleAlign: 'center', columnAlign: 'center',isResize:true},
                    {field: 'getMore', width: 65, titleAlign: 'center', columnAlign: 'center',isResize:true},
                ],
                tableData: [
//                      {"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"1班",},
//						{"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"1班",},
//						{"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"1班",},  
                ],
                titleRows2: [
                             [
                              	{fields: ['teacherName'], title: '教师', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['className'], title: '班级', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
//                            	{fields: ['subjectName'], title: '学科', titleAlign: 'center',rowspan: 2},
                              	{fields: ['averageResults','passRateResults','excellentRateResults'], title: '三率得分(30)', titleAlign: 'center',rowspan: 1,colspan: 3,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['backResults','forewardResults'], title: '横向得分(66)', titleAlign: 'center',rowspan: 1,colspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['verticalResults'], title: '纵向得分(20)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['originalSumResults'], title: '三项总分(116)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                            	{fields: ['changeSumResults'], title: '三项总分(80)116分转80分制', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                            	{fields: ['classesResults'], title: '班级得分(20)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['sumResults'], title: '总分(100)', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	{fields: ['teacherResults'], title: '总分(8)100分制转8分制', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['subjectResults'], title: '学科平均分', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['isQualified'], title: '达标', titleAlign: 'center',rowspan: 2,titleCellClassName:'title-cell-class-name-2'},
                              	
                              ],
                            [
                            	{fields: ['averageResults'], title: '平均分(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['passRateResults'], title: '及格率(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['excellentRateResults'], title: '优秀率(10)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['backResults'], title: '巩固率(43)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'},
                              	{fields: ['forewardResults'], title: '提升率(23)', titleAlign: 'center',titleCellClassName:'title-cell-class-name-1'}, 	
                            ],

                             
                ],
                columns2: [
                    {field: 'teacherName', width: 70, titleAlign: 'center', columnAlign: 'center',isResize:true},
					{field: 'className', width: 70, titleAlign: 'center', columnAlign: 'center',isResize:true},
                    {field: 'averageResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'passRateResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'excellentRateResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'backResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'forewardResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'verticalResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'originalSumResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'changeSumResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'classesResults', width: 65, columnAlign: 'center' ,isResize:true},
                    {field: 'sumResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'teacherResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'subjectResults', width: 65, columnAlign: 'center',isResize:true},
                    {field: 'isQualified', width: 65, titleAlign: 'center', columnAlign: 'center',isResize:true},
                    
                ],
                tableData2: [
//                      {"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"达标",},
//						{"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"不达标",},
//						{"teacherName":"A","averageResults":"50","passRateResults":"zhao","excellentRateResults":"55","backResults":"2","forewardResults":"66","verticalResults":"5","originalSumResults":"66","changeSumResults":"183","classesResults":"zhao","sumResults":"55","teacherResults":"2","subjectResults":"66","isQualified":"1班",},  
                ],
                
                subjectaverage:"",
                
                linedata:{
                    tooltip: {
				        trigger: 'axis',
				        axisPointer: {
				            type: 'cross',
				            crossStyle: {
				                color: '#999'
				            }
				        }
				    },
				    toolbox: {
				        feature: {
//				            dataView: {show: true, readOnly: false},
				            magicType: {show: true, type: ['line', 'bar']},
				            restore: {show: true},
				            saveAsImage: {show: true}
				        }
				    },
				    legend: {
				        data:['老师得分','学科平均分']
				    },
				    xAxis: [
				        {
				            type: 'category',
				            data: [],
				            axisPointer: {
				                type: 'shadow'
				            },
				            axisLabel: {
                                           interval:0,
                                           rotate:-40
                                       }
				        }
				    ],
				    yAxis: [
				        {
				            type: 'value',
				            name: '得分',
				            min: 0,
				            max: function(value) {
							    return Math.ceil(value.max);
							},
							interval: 1,
				            axisLabel: {
				                formatter: '{value} 分'
				            }
				        },
				    ],
				    series: [
				        {
				            name:'老师得分',
				            type:'bar',
				            data:[],
				            itemStyle: {
			                    normal: {
			                    	//es6的箭头函数可以访问到data里面的数
			                        color: (params)=> {
//			                        	//console.log(this.subjectaverage)
//			                        	//console.log(params.value)
                            			return params.value > this.subjectaverage?'#517edb':'#97b2e9';
			                        },
			                    }
		                	},
				        },
				        {
				            name: '学科平均分',
				            type: 'line',
				            markLine: {
				                silent: true,
				                data: [{
				                    yAxis: ''
				                }]
				            }
				        }
				    ]
                }
			}
		},
		created(){
//			this.excelname = getsessionstorage('excelname')
//			this.gradeName = getsessionstorage('gradeName')
//			this.baseExamName = getsessionstorage('baseExamName')
//			this.thisExamName = getsessionstorage('thisExamName')
//			this.createTime = getsessionstorage('createTime')
			this.getsubjectlist();
//			this.gettablelist()
		},
		mounted() {
//         this.getchartdata(); 
        },
        computed: {
			
		},
		methods:{
			changeselect:function(){
//				//console.log(this.subjectselect)
				this.gettablelist();
				this.getchartdata();
			},
			getsubjectlist:function(){
           		this.subjectlistshow = true;
           		let sessionroleid = getsessionstorage('roleid');
           		let sessionperformId = getsessionstorage('performId');
           		var self = this;
            	let url = api.apidomain+'/tqes/web/quaPerformance/getSubjectByAd/'+sessionroleid+'/'+sessionperformId;
            	this.$http.post(url, {}).then(function(response) {
					if(response.data.success == true){
						
//						////console.log(response.data.data)
						self.subjectlist = response.data.data
						if(self.subjectlist.length != 0){
							self.subjectselect = self.subjectlist[0].value;
							self.gettablelist();
							self.getchartdata();
						}
						
						
						self.subjectlistshow = false;
		            }else if(response.data.success == false){
		            		self.$Message.error({
								content: response.data.msg,
								duration: 10,
								closable: true
							});	
		            		self.subjectlistshow = false;
		            	}
					})
					.catch(function(error) {
						self.$Message.error({
							content: '系统发生错误：错误码00152',
							duration: 10,
							closable: true
						});
						self.subjectlistshow = false;
					});
           	},
			gettablelist:function(){
				let sessionroleid = getsessionstorage('roleid');
				let sessionperformId = getsessionstorage('performId')
				if(sessionroleid && sessionperformId){
					this.loadingShow = true;
					var self = this;
	            	let url = api.apidomain+'/tqes/web/quaTeacherResults/listDto/'+sessionperformId+'/'+sessionroleid+'/'+this.subjectselect;
	            	this.$http.post(url).then(function(response) {
						if(response.data.success == true){
							self.loadingShow = false;
//		            		////console.log(response.data.data)
							self.titleRows[0][8].title = response.data.data.teachertotalScore
							self.tableData = response.data.data.TeacherResults
			            }else if(response.data.success == false){
			            		self.loadingShow = false;
			            		self.$Message.error({
									content: response.data.msg,
									duration: 10,
									closable: true
								});
			            	}
			            })
						.catch(function(error) {
							self.loadingShow = false;
							self.$Message.error({
								content: '系统发生错误：错误码00153',
								duration: 10,
								closable: true
							});
						});
				}else{
					self.$Message.error({
							content: '系统发生错误：错误码00154',
							duration: 10,
							closable: true
						});
				}
			},
			getchartdata:function(){
				let sessionroleid = getsessionstorage('roleid');
				let sessionperformId = getsessionstorage('performId')
				if(sessionroleid && sessionperformId){
					this.chartshow = true;
					var self = this;
	            	let url = api.apidomain+'/tqes/web/quaTeacherResults/listEcharts/'+sessionperformId+'/'+sessionroleid+'/'+this.subjectselect;
	            	this.$http.post(url, {}).then(function(response) {
						if(response.data.success == true){
//							////console.log(response.data.data)
							self.subjectaverage = response.data.data.average[0];
//							//console.log(self.subjectaverage)
							self.linedata.xAxis[0].data = response.data.data.teacher;
							self.linedata.series[0].data = response.data.data.results; 
							if(response.data.data.average.length != 0){
								self.linedata.series[1].markLine.data[0].yAxis = response.data.data.average[0];
							}
							
							self.drawLine();
		            }else if(response.data.success == false){
		            		self.$Message.error({
								content: response.data.msg,
								duration: 10,
								closable: true
							});	
		            	}
		            	
					})
					.catch(function(error) {
						self.$Message.error({
							content: '系统发生错误：错误码00155',
							duration: 10,
							closable: true
						});
					});
				}
				
				
			},
//柱状图函数
			drawLine() {
                let myChart = this.$echarts.init(this.$refs.test)
                myChart.setOption(this.linedata);
                this.chartshow = false;
            },
            columnCellClass:function(rowIndex,columnName,rowData){
				if (columnName==='getMore'){
                    return 'clickClass';
                }
				
			},
            cellMerge(rowIndex,rowData,field){
            	if(field === 'getMore'){
					return {
						colSpan:1,
	                    rowSpan:1,
	                    content: '<span >更多</span>',
	                    componentName: ''
	                }
				}
            	if(field === 'isQualified' && rowData[field] === '1'){
					return {
						colSpan:1,
	                    rowSpan:1,
	                    content: '<span ><i style="color: green;" class="iconfont alicon-check"></i></span>',
	                    componentName: ''
	                }
				}
           		if(field === 'isQualified' && rowData[field] === '0'){
					return {
						colSpan:1,
	                    rowSpan:1,
	                    content: '<span ><i style="color: red;" class="iconfont alicon-close"></i></span>',
	                    componentName: ''
	                }
				}
           		if(field === 'isQualified' && rowData[field] === '达标'){
					return {
						colSpan:1,
	                    rowSpan:1,
	                    content: '<span ><i style="color: green;" class="iconfont alicon-check"></i></span>',
	                    componentName: ''
	                }
				}
           		if(field === 'isQualified' && rowData[field] === '不达标'){
					return {
						colSpan:1,
	                    rowSpan:1,
	                    content: '<span ><i style="color: red;" class="iconfont alicon-close"></i></span>',
	                    componentName: ''
	                }
				}
            },
            getDetailInfo:function(rowIndex,rowData,column){
//				console.log(rowIndex);
//				console.log(rowData.teacherId);
//				console.log(column.field);
				if(column.field != "getMore"){
					return;
				}
				let sessionroleid = getsessionstorage('roleid');
				let sessionperformId = getsessionstorage('performId');
				
				var senddata = {
					"performId":sessionperformId,		//绩效Id
					"roleId":sessionroleid,							//角色id
					"teacherId":rowData.teacherId
				}
				
				var self = this;
				let url = api.apidomain+'/tqes/web/quaTeacherResults/getTeacherResultsDetails';
            	this.$http.post(url,senddata).then(function(response) {
					if(response.data.success == true){
						
//						console.log(response.data.data)
						
						if(response.data.data.length == 0){
							self.$Message.error({
								content: '此老师暂无其他数据，请选择其他老师查看',
								duration: 10,
								closable: true
							});
							return;
						}
						self.titleRows2[0][8].title = response.data.data.teachertotalScore
						self.tableData2 = response.data.data.TeacherResults
						
		            }else if(response.data.success == false){
		            		self.$Message.error({
								content: response.data.msg,
								duration: 10,
								closable: true
							});	
		            	}
					})
					.catch(function(error) {
						self.$Message.error({
							content: '系统发生错误：错误码00310',
							duration: 10,
							closable: true
						});
					});
				
			},
//excel导出函数
			exportexl:function(){
			
				let sessionroleid = getsessionstorage('roleid');
				let sessionperformId = getsessionstorage('performId');
				let subject = this.subjectselect;
				if(sessionroleid && sessionperformId){
					this.loading = true;
				
					var self = this;
	            	let url = api.apidomain+'/tqes/web/quaTeacherResults/exportExcelDto/'+sessionperformId+'/'+sessionroleid+'/'+subject;
	            	this.$http.post(url).then(function(response) {
						if(response.data.success == true){
	//						////console.log(response.data.data)
							window.location.href = response.data.data;
							self.loading = false;
		            }else if(response.data.success == false){
		            		self.loading = false;
		            		self.$Message.error({
								content: response.data.msg,
								duration: 10,
								closable: true
							});
		            	}
		            	
					})
					.catch(function(error) {
						self.loading = false;
						self.$Message.error({
							content: '系统发生错误：错误码00156',
							duration: 10,
							closable: true
						});
					});
				}
			}  
		}
	}
</script>

<style>
	.title-cell-class-name-1{
        background-color: #5b89e4;
        color:black;
    }
    .title-cell-class-name-2{
        background-color: #97b2e9;
        color:black;
    }
    .clickClass{
    	color: #57a3f3;
    	cursor: pointer;
    }
</style>